del *.dll unzip.h
@REM 一定要cgo enabled
set CGO_ENABLED=1
set GOOS=windows
set GOARCH=amd64
go build -v -buildmode=c-shared -ldflags="-w -s -buildid=-gcflags=-l -linkmode=external -extldflags=-Wl,--gc-sections" -o unzip.dll unpack_as_dll.go

gcc unpack_tool.c -o unzip_tool.exe -L. -lunzip -lws2_32